package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.domain.StrategyCatalog;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCatalogService {
    /**
     *
     * 查询所有攻略目录
     * @param qo
     * @return
     */
    PageInfo<StrategyCatalog> query(QueryObject qo);

    /**
     * 更新修改目录
     * @param strategy
     */
    void saveOrUpdate(StrategyCatalog strategy);

    /**
     * 根据攻略id查询目录
     * @param strategyId
     * @return
     */
    List<StrategyCatalog> selectCatalogByStrategyId(Long strategyId);
}
